/**
 * Created by ChenSanjin on 2021/12/18.
 */


export function getRouter (clientType) {
  if (!clientType) {
    console.log('getRouter clientType is blank', clientType)
    return '/cms-auto-create'
  }
  clientType = clientType.trim()
  /*   const routerMap = {
      CMSAutoCreate: '/cms-auto-create',
      AutoCreate: '/auto-create',
    } */
  var routeStr = ''
  switch (clientType) {
    case "CMSAutoCreate":
      routeStr = '/cms-auto-create'
      break
    case "AutoCreate":
      routeStr = '/auto-create'
      break
    case "CMSAuto":
      routeStr = '/cms-auto'
      break
    case "CMSManualOSD":
      routeStr = '/cms-manual-osd'
      break
    case "CMSManualSSD":
      routeStr = '/cms-manual-ssd'
      break
    case "CMSOutAuto":
      routeStr = '/cms-out-auto'
      break
    case "ToTGPS":
      routeStr = '/to-gps'
      break
    case "GateOutAuto":
      routeStr = '/gate-out'
      break
    case "GateOutManual":
      routeStr = '/gate-manual'
      break
    case "WeightingAuto":
      routeStr = '/weighting-auto'
      break
    case "CarList":
      routeStr = '/car-list'
      break
    case "ManualList":
      routeStr = '/manual-list'
      break
    case "VerifyCard":
      routeStr = '/verify-card'
      break

    default:
      routeStr = '/cms-auto-create'
  }
  return routeStr
}